package cn.iocoder.yudao.framework.websocket.core;

import cn.iocoder.yudao.framework.security.core.LoginUser;
import lombok.Data;

import java.security.Principal;
@Data
public class WebSocketUser extends LoginUser implements Principal {
    private String sessionId;
    public WebSocketUser(String sessionId){
        this.sessionId = sessionId;
    }

    @Override
    public String getName() {
        return String.valueOf(super.getId());
    }
}
